package com.zhdl.instruction.strategy.after;

import com.project.command.instruction.strategy.abs.AbsAfterControlCommand;
import com.project.command.instruction.strategy.process.data.AfterStrategyParam;
import com.project.common.bean.FrameDto;
import io.netty.buffer.ByteBuf;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import static com.zhdl.instruction.strategy.after.AfterInstructionStrategy.ZHDL_AFTER_INSTRUCTION_DEFAULT;

/**
 * @Description:
 * @author: liu zhenming
 * @date: 2023/7/14 16:23
 */
@Slf4j
@Service(ZHDL_AFTER_INSTRUCTION_DEFAULT)
public class AfterInstructionStrategy extends AbsAfterControlCommand<FrameDto, ByteBuf> {

    public static final String ZHDL_AFTER_INSTRUCTION_DEFAULT = "zhdl-default";

    @Override
    public boolean afterResultJudge(AfterStrategyParam resp) {

        //此处接收串口或网口客户端回应代码,并处理
        log.info("收到客户端信息");

        return true;
    }


}
